<!doctype html><html xmlns="http://www.w3.org/1999/xhtml" id="html">
    <head>
        <title></title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <base href="<?= base_url(1); ?>" />
        <link type="text/css" href="css/main.css?v=<?= $config['version'] ?>" rel="stylesheet" />
    </head>
    <body>
        <?php include(VIEWPATH . 'common/main_header.php'); ?>
        <div class="datalist"><table id="flexigrid" style="display:none"></table></div>
        <script type="text/javascript">
            $(function() {
                $("#flexigrid").flexigrid($.extend(SG.flexOptions, {
                    url: '<?= site_url('buglist/managerbug/flexigrid') ?>',
                    colModel: [
                        {display: '<?= translate('ID') ?>', name: 'id', width: 80, iskey: true , hide:true, },
                        {display: '<?= translate('MANAGERBUG_PLATFORM') ?>', name: 'platform', width: 80},
                        {display: '<?= translate('MANAGERBUG_CHANNEL') ?>', name: 'channel', width: 80},
                        {display: '<?= translate('MANAGERBUG_ACCOUNTID') ?>', name: 'accountid', width: 80, process: formatSearch},
                        {display: '<?= translate('MANAGERBUG_ROLEID') ?>', name: 'roleid', width: 80, process: formatSearch},
                        // {display: '<?= translate('MANAGERBUG_BUGTYPE') ?>', name: 'bugtype', width: 80},
                        {display: '<?= translate('MANAGERBUG_QUESTION') ?>', name: 'question', width: 300},
                        {display: '<?= translate('MANAGERBUG_ANSWER') ?>', name: 'answer', width: 300},    
                        {display: '<?= translate('MANAGERBUG_PHONE') ?>', name: 'phone', width: 120},
                        {display: '<?= translate('MANAGERBUG_MAIL') ?>', name: 'mail', width: 120},                    
                        {display: '<?= translate('MANAGERBUG_CREATETIME') ?>', name: 'createtime', width: 120},
                        {display: '<?= translate('MANAGERBUG_REPLAYTIME') ?>', name: 'replaytime', width: 120},
                        {display: '<?= translate('MANAGERBUG_ISANSWER') ?>', name: 'isanswer', width: 80},
                        {display: '<?= translate('MANAGERBUG_DEL') ?>', name: 'del', width: 180,hide:'true'},
                        {display: '<?= translate('MANAGE') ?>', name: 'id', width: 135, sortable: false, process: formatOp}  
                    ],
                    buttons: [
						//{name: 'add', displayname: "<?= translate('ADD') ?>", title: "<?= translate('ADD') ?>", bclass: 'add', onpress: multi},
                        //{name: 'delete', displayname: "<?= translate('DEL') ?>", title: "<?= translate('DEL') ?>", bclass: 'delete', onpress: multi},
                        //{separator: true}
                    ],
                    searchitems: true,
                }));
                SG.admin = $.extend(SG.admin, {
                	replay_url: '<?= site_url("buglist/managerbug/replay/") ?>',
                    del_url: '<?= site_url("buglist/managerbug/del/") ?>',
                });
                
            });
        </script>       
    </body>
</html>